package com.example.security.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.security.dao.RoleDao;
import com.example.security.entity.UserRole;
import com.example.security.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	RoleDao roleDao;
	
	@Override
	public List<UserRole> getRolesByUserId(String userId) {
		// TODO Auto-generated method stub
		return roleDao.getRoleByUserId(userId);
	}

}
